﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:wpf="clr-namespace:ViewOnCore.Helper.WPF"
	x:Class="ViewOnCore.Helper.WPF.ColorPickerPopupButton">

	<StackPanel>
		<Button
			   x:Name="btnColorPicker"
			   Style="{DynamicResource WindowBarButton}">
			<Ellipse
					Height="6"
					Width="6"
					Stroke="{DynamicResource VOColor02}"
					StrokeThickness="2"
					HorizontalAlignment="Center"
					VerticalAlignment="Center"/>
		</Button>
		<Popup
			   x:Name="popup"
			   PlacementTarget="{Binding ElementName=btnColorPicker}"
			   Placement="Right"
			   VerticalAlignment="Top">
			<Border BorderBrush="{DynamicResource VOColor 10}" BorderThickness="1">
				<wpf:ColorPicker x:Name="colorPicker"/>
			</Border>
		</Popup>
	</StackPanel>
    
</UserControl>
